package org.example.aienglishapp.mapper.speech.chapter;

import org.apache.ibatis.annotations.*;
import org.example.aienglishapp.entity.speech.chapter.Chapter;


import java.util.List;

/**
 * @author Asus
 */
@Mapper
public interface ChapterMapper {

    Chapter findById(Long chapterId);

    List<Chapter> findAll();

    int insert(Chapter chapter);

    int update(Chapter chapter);

    int deleteById(Long chapterId);

    List<Chapter> findByBookId(Long bookId);
}
